package cn.edu.njuit.children.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @TableName sys_use_account
 */
@TableName(value ="sys_user_account")
@Data
public class UserAccount implements Serializable {
    /**
     * 编码
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户昵称
     */
    @TableField(value = "nickname")
    private String nickname;

    /**
     * 手机号码
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 密码
     */
    @TableField(value = "password")
    @JsonIgnore
    private String password;

    /**
     * openid
     */
    @TableField(value = "openid")
    private String openid;

    /**
     * 性别
     */
    @TableField(value = "gender")
    private String gender;

    /**
     * 个人介绍
     */
    @TableField(value = "user_desc")
    private String userDesc;

    /**
     * 头像
     */
    @TableField(value = "avatar")
    private String avatar;

    /**
     * 注册时间
     */
    @TableField(value = "register_time")
    private Date registerTime;

    /**
     * 账号状态
     */
    @TableField(value = "account_status")
    private String accountStatus;

    /**
     * 最近登录时间
     */
    @JsonIgnore
    @TableField(value = "last_login_time")
    private Date lastLoginTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
